package cn.qiyu5522.controller;


import cn.qiyu5522.domain.entity.ResponseResult;
import cn.qiyu5522.service.LinkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 友链 前端控制器
 * </p>
 *
 * @author Tonkey
 * @since 2024-04-11
 */

@Api(tags = "友链相关接口")
@RestController
@RequestMapping("/link")
public class LinkController {

    @Resource
    private LinkService linkService;

    @ApiOperation(value = "获取友链列表",notes = "查询全部友链")
    @GetMapping("getAllLink")
    public ResponseResult getAllLink(){
        return linkService.getAllLink();
    }

}
